<%@page contentType="text/html"%><%@page pageEncoding="UTF-8"%>

<%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>

<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html><head><script type="text/javascript" src="js/mascaras.js"></script>

<link rel="stylesheet" type="text/css" href="content_dge.css"></head>
<body>
<jsp:useBean id="tdao" class="br.com.hotel.dao.TipoAptoDAO"/>
<f:view>
<h:form id="formulario" target="content">


<table width="100%" border="0" cellpadding="2" cellspacing="0"><tbody><tr><td class="FundoABA" width="10px">&nbsp;</td><td class="SelecionadaABA" nowrap="nowrap"><font class="SelecionadaFontABA">&nbsp;Detalhes&nbsp;</font></td><td class="FundoABA" width="1px"></td><td class="FundoABA" width="100%">&nbsp;</td></tr><tr><td colspan="4" class="SelecionadaABA" height="4px"></td></tr></tbody></table><table width="100%" align="center" border="0" cellpadding="1" cellspacing="0">
<tbody><tr><td>

<table class="FormTABLE" cellspacing="0">

<h:inputHidden value="#{EstadiaJSF.id}" binding="#{EstadiaJSF.fId}" id="id" />

<tbody><tr><td class="RecordSeparatorTD" colspan="2"><font class="RecordSeparatorFONT"><b>Dados Cadastrais</b></font></td></tr>

<tr><td class="LabelTD" width="20%" nowrap="nowrap"><font class="LabelFONT">Data inicial : </font></td><td class="DataTD" width="80%"><font class="DataFONT"><h:inputText id="fDdata_inicial"  value="#{EstadiaJSF.data_inicial}" binding="#{EstadiaJSF.fData_inicial}" size="10" maxlength="10" required="true" requiredMessage="* campo obrigatório"/></font><a href="javascript:showCalendar('formulario:fDdata_inicial')"><img src="img/calendario.gif" border="0"></a><h:message for="fData_inicial" errorStyle="color:red" warnClass="" /></td>
</tr>
<tr><td class="LabelTD" width="20%" nowrap="nowrap"><font class="LabelFONT">Data final : </font></td><td class="DataTD" width="80%"><font class="DataFONT"><h:inputText id="fData_final" value="#{EstadiaJSF.data_final}" binding="#{EstadiaJSF.fData_final}" size="10"  maxlength="10" required="true" requiredMessage="* campo obrigatório"/></font><a href="javascript:showCalendar('formulario:fData_final')"><img src="img/calendario.gif" border="0"></a><h:message for="fData_final" errorStyle="color:red" warnClass="" /></td>
</tr>
<tr><td class="LabelTD" width="20%" nowrap="nowrap"><font class="LabelFONT">Cliente:</font>
</td>
<td class="DataTD" width="80%">
<h:selectOneMenu id="fCliente"
 value="#{EstadiaJSF.cliente}" binding="#{EstadiaJSF.fCliente}"required="true" requiredMessage="*campo obrigatório">
 <f:selectItems  value="#{EstadiaJSF.clientes}" />
 
</h:selectOneMenu> <h:message for="cliente" errorStyle="color:red" warnClass="" /></td>
</tr>

<tr><td class="LabelTD" width="20%" nowrap="nowrap"><font class="LabelFONT">Diária:</font>
</td>
<td class="DataTD" width="80%">
<h:selectOneMenu id="fDiaria"
 value="#{EstadiaJSF.diaria}" binding="#{EstadiaJSF.fDiaria}" required="true" requiredMessage="*campo obrigatório">
 <f:selectItems  value="#{DiariaJSF.diarias}" />
 
</h:selectOneMenu> <h:message for="fDiaria" errorStyle="color:red" warnClass="" /></td>
</tr>


<tr><td class="LabelTD" width="20%" nowrap="nowrap"><font class="LabelFONT"> </font></td><td class="DataTD" width="80%"><font class="DataFONT"><h:selectBooleanCheckbox  id="fReservado" value="#{EstadiaJSF.reservado}" binding="#{EstadiaJSF.fReservado}" validator="#{EstadiaJSF.valida}"/></font><h:message for="fReservado" errorStyle="color:red" warnClass="" /></td>


</tbody></table>
<h:commandButton value="Salvar" action="#{EstadiaJSF.save}"  />

</table>
</h:form>
</f:view>
</body></html>